package org.neuedu.chapter09_0701.practice10;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Practice10 {
    public static boolean checkDate(String str) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
        try {
            Date date = sdf.parse(str);
            return true;
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return false;
    }
    public static void main(String[] args) {

    }
}
